﻿@model List<ToDoListWeb.Models.Matter>
    @{
        Layout = null;
    }

    <ul>
        @if (Model != null)
        {
            foreach (var item in Model)
            {
                <li>
                    @if (item.IsFinished)
                    {
                            <a id="is-over" onclick="changeIsFinished(@item.MatterId)"><img id="is-over-img" src="~/images/已完成.png"></a>
                    }
                    else
                    {
                            <a id="is-over" onclick="changeIsFinished(@item.MatterId)"><img id="is-over-img" src="~/images/未完成1.png"></a>

                    }
                    <a id="all-matter" onclick="chooseMatter(@item.MatterId)">
                    @if (item.IsPastdue)
                    {
                        <span title="已过期" class="pastdue"><s>@item.MatterContent</s></span>
                    }
                    else
                    {
                        <span>@item.MatterContent</span>
                    }
                    </a>
                    <a id="a-delete" onclick="deleteMatter(@item.MatterId)"><img src="~/images/删除.png" id="delete-img"></a>
                </li>
            }
        }
    </ul>
